﻿namespace IdentityService.Domain.InterfaceAntiCorruptionLayer
{
    /// <summary>
    /// 邮件发送通信接口
    /// </summary>
    public interface IEmailSender
    {
        /// <summary>
        /// 异步发送邮件方法，接收收件人邮箱、邮件主题和邮件内容作为参数
        /// </summary>
        /// <param name="toEmail">收件人邮箱</param>
        /// <param name="subject">邮件主题</param>
        /// <param name="body">邮件内容</param>
        /// <returns></returns>
        Task SendAsync(string toEmail, string subject, string body);
    }
}
